class Wrun extends egret.DisplayObjectContainer {
	private imgArr;
	public constructor(Arr) {
		super();
		this.imgArr = Arr;
this.addEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage, this);

	}

	public onAddToStage() {
		var bmd: egret.BitmapData = this.imgArr[SystemManger.RESURL+"assets/img/load/wrun1.png"];
		var bird: egret.Bitmap = new egret.Bitmap();
		bird.$setBitmapData(bmd);
		var pre = 0.7;
		bird.x = 250;
		bird.y = 250;
		bird.width = 130 * pre;
		bird.height = 220 * pre;
		this.addChild(bird);
        var i = 1;
		var point = this;
		window.setInterval(function(){
			i++;
			if(i>4){
				i=1;
			}
		 var bmd: egret.BitmapData = point.imgArr[SystemManger.RESURL+"assets/img/load/wrun"+i+".png"];
         bird.$setBitmapData(bmd);
		},150);
	}
}